package com.lxj.student_security.controller;

import com.lxj.student_security.common.CommonResult;
import com.lxj.student_security.entity.LoginRecord;
import com.lxj.student_security.service.EsLoginRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/es")
public class EsLoginRecordController {
    @Autowired
    private EsLoginRecordService esLoginRecordService;

    @PostMapping("/getEsLog")
    public CommonResult getEsLog(LoginRecord loginRecord){
        return esLoginRecordService.getEsLog(loginRecord);
    }
}
